package com.hqyj.dao;

import com.hqyj.pojo.Book;
import com.hqyj.pojo.User;

import java.util.List;

public interface UserDao {
    void addUser(User user);
    User selectUserByName(String username);
    List<Book> selectBookAll();
    List<Book> selectBooksByReadId(int readId);
    void updateBookByBookId(int bookId);
    List<Book> selectBooksByLendedIsZero();
    void updateBookByBookId(int bookId,int readId);
    void insertBook(Book book);
    Book selectBookByBookId(int bookId);
    void updateBookByBookId(Book book);
    void deleteBook(int bookId);
    void updateUserPassword(User user);

}
